package dao

import (
	"errors"
	"user_srv/handler/models"
)

func GetUserById(id uint64) (models.User, error) {
	var u models.User
	u.Id = id
	if err := u.GetById(); err != nil {
		return models.User{}, errors.New("查询失败" + err.Error())
	}
	return u, nil
}
